package com.lzk.springboot.demo;

import com.lzk.springboot.demo.utilservice.RedisSerivceUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.util.StringUtils;

import javax.swing.*;

@SpringBootApplication
public class DemoApplication implements ApplicationRunner{
	@Autowired
	private RedisSerivceUtil redisSerivceUtil;
	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(DemoApplication.class);
		app.run(args);
	}


	@Override
	public void run(ApplicationArguments args) throws Exception {
//		System.out.println(redisSerivceUtil.getRightFromRedis("asdf"));
//		redisSerivceUtil.setLeftForRedis("asdf","adsfasdfadsf");
//		System.out.println(redisSerivceUtil.getRightFromRedis("asdf"));

	}
}
